package com.shw.system;

import pers.linhai.nature.application.NatureApplication;
import pers.linhai.nature.application.annotation.NatureBootApplication;
import pers.linhai.nature.webapplication.NatureWebApplication;

/**
 * Spring boot应用启动类
 */
@NatureBootApplication
public abstract class ShwApplication extends NatureWebApplication
{
    
    /**
     * spring boot web应用的基类启动函数
     * @param clazz
     * @param args 
     * void
     */
    protected static void start(Class< ? extends NatureApplication> clazz, String[] args)
    {
        NatureWebApplication.start(clazz, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  项目启动成功   ლ(´ڡ`ლ)ﾞ  \n"
                + "  _____ __ __  __    __ \r\n" + 
                " / ___/|  |  ||  |__|  |\r\n" + 
                "(   \\_ |  |  ||  |  |  |\r\n" + 
                " \\__  ||  _  ||  |  |  |\r\n" + 
                " /  \\ ||  |  ||  `  '  |\r\n" + 
                " \\    ||  |  | \\      / \r\n" + 
                "  \\___||__|__|  \\_/\\_/  \r\n" + 
                "                        \r\n" + 
                "\r\n" + 
                "" );
    }
}
